package phoenix.mob_android.page_objects;

import phoenix.core.PhoenixManager;
import phoenix.core.base.extensions.PageBaseMobAndroidExt;
import phoenix.core.config.extensions.ConfigExt;
import phoenix.mob_android.locators.base.LikeOrNotLocatorsBase;

public class LikeOrNotPage extends PageBaseMobAndroidExt
{

	/**
	 * Initializes the IndexPage
	 * @param p_manager
	 *            PhoenixManager instance
	 */
	public LikeOrNotPage(PhoenixManager p_manager)
	{
		super(p_manager);
	}

	/**
	 * Gets web elements by site
	 * @return IndexPageLocatorsBase instance
	 */
	public LikeOrNotLocatorsBase elements()
	{
		switch (manager.testModel().getSiteName())
		{
			case ConfigExt.SITE_ID_FLIRT:
			{
				return new phoenix.mob_android.locators.flirt.LikeOrNotLocators();
			}
			case ConfigExt.SITE_ID_WILDBUDDIES:
			{
				return new phoenix.mob_android.locators.wildbuddies.LikeOrNotLocators();
			}
			case ConfigExt.SITE_ID_CHEECKYLOVERS:
			{
				return new phoenix.mob_android.locators.cheeckylovers.LikeOrNotLocators();
			}
			default:
			{
				return null;
			}
		}
	}

	public void isOnLikeOrNotPage()
	{
		md().waitForPresence(elements().btnLikeOrNot, "Like or not page doesn't appear");
	}

}
